<?php

class Principal extends CI_Controller
{

    function __construct()
    {
        parent::__construct();
        $this->load->library('tank_auth');
        $this->load->model('principal_model');
    }

    function index()
    {
        $data['tipo_usuario']=$this->tank_auth->get_rol();
        $data['rubros_array']=$this->principal_model->select_rubros_nombres();
        $data['title']='Home | tuindicedigital.com';
        $data['css']=array('css/tid_base');
        $data['views']=array('includes/header','includes/sidebar','principal/principal_view','includes/footer');
        $this->load->view('templates/general',$data);

    }
     
}